package org.neuedu.ssmp.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author MoonHolder
 * @since 2019-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CustomerLost对象", description="")
public class CustomerLost implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "客户id")
    private Integer customerId;

    @ApiModelProperty(value = "最后下单日期")
    private LocalDate lastOrder;

    @ApiModelProperty(value = "确认流失日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate lostDay;

    @ApiModelProperty(value = "暂缓措施")
    private String content;

    @ApiModelProperty(value = "追加措施")
    private String addMeasures;

    @ApiModelProperty(value = "流失原因")
    private String lostCause;

    @ApiModelProperty(value = "状态")
    private String state;

    private String username;

    private String name;


}
